![]() |
MPSetTaskStorageValue |
||||
Header: | Multiprocessing.h | Carbon status: | Supported | |
Sets the storage value for a given index number.
OSStatus MPSetTaskStorageValue ( TaskStorageIndex index, TaskStorageValue value );
The index number whose storage value you want to set.
The value you want to set.
A result code.
Typically you use MPSetTaskStorageValue to store pointers to task-specific structures or data.
Calling this function from within a task effectively assigns a value in a two-dimensional array cross-referenced by task storage index value and the task ID.
Also see the function MPGetTaskStorageValue.
Introduced with Multiprocessing Services 2.0.
Supported in Carbon. Available in CarbonLib 1.0 and later when MPLibrary 2.0 or later is installed. Exported by CarbonLib 1.0 and later and by MPLibrary 2.0 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)